﻿using System;
using RStein.Posterous.API;
using RStein.PosterousReader.WP.HostServices;

namespace RStein.PosterousReader.WP.ViewModels
{
    public class PosterousViewModelBase : ViewModelBase
    {
                           
        public PosterousViewModelBase(IPosterousApplication posterousApplication, INavigationService navigation, string pageTitle)
            : base(pageTitle)
        {
            if (posterousApplication == null)
            {
                throw new ArgumentNullException("posterousApplication");
            }

            if (navigation == null)
            {
                throw new ArgumentNullException("navigation");
            }

            PosterousApplicatonService = posterousApplication;
            NavigationService = navigation;
            
        }


        public static string LastUsedUserName
        {
          get;
          set;
        }

        public static string LastUsedPassword
        {
          get;
          set;
        }
        
        
        protected IPosterousApplication PosterousApplicatonService
        {
            get;
            set;
        }

        protected INavigationService NavigationService
        {
            get;
            set;
        }



    }

}
